export default {
  // {
  //   home:{
  //     title:'首页'
  //   }
  // }
  install(app, options) {
    console.log("app==============>", app);
    app.config.globalProperties.$ttt = (params) => {
      // home.title => [home,title]
      return params.split('.').reduce((prev, current) => {
        if (prev) return prev[current]
      }, options)
    }
  }
}